package com.atguigu.orderservice.client;

import com.atguigu.common.vo.CommonMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-ucenter")
@Component
public interface UcenterClient {

    //根据用户id获取用户信息，为了创建订单使用
    @GetMapping("/ucenterservice/member/getCommonMember/{id}")
    public CommonMember getCommonMember(@PathVariable("id") String id);
}
